//see svn/trunk/main.c